﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Init(object sender, EventArgs e)
    {
        
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Title = CubaSite.Configuracion.ConfiguracionCubaSite.GetApplicationName();
        if (!IsPostBack)
        {
            LoadScriptsAndFlashs();
        }
    }

    private void LoadScriptsAndFlashs()
    {
        StringBuilder resources = new StringBuilder();

        resources.Append("<script type=\"text/javascript\" src=\"");
        resources.Append(VirtualPathUtility.ToAbsolute("~/Script/jquery-1.7.2.min.js"));
        resources.Append("\"></script>");

        resources.Append("<script type=\"text/javascript\" src=\"");
        resources.Append(VirtualPathUtility.ToAbsolute("~/Script/jquery-ui-1.8.21.custom.min.js"));
        resources.Append("\"></script>");

        resources.Append("<script type=\"text/javascript\" src=\"");
        resources.Append(VirtualPathUtility.ToAbsolute("~/Script/jquery.scrollTo-min.js"));
        resources.Append("\"></script>");

        resources.Append("<script type=\"text/javascript\" src=\"");
        resources.Append(VirtualPathUtility.ToAbsolute("~/Script/validationGroups.js"));
        resources.Append("\"></script>");

        resources.Append("<script type=\"text/javascript\" src=\"");
        resources.Append(VirtualPathUtility.ToAbsolute("~/Script/jquery.validate.min.js"));
        resources.Append("\"></script>");

        resources.Append("<script type=\"text/javascript\" src=\"");
        resources.Append(VirtualPathUtility.ToAbsolute("~/Script/jquery.tipTip.minified.js"));
        resources.Append("\"></script>");

        resources.Append("<script type=\"text/javascript\" src=\"");
        resources.Append(VirtualPathUtility.ToAbsolute("~/Script/jquery.cross-slide.min.js"));
        resources.Append("\"></script>");

        resources.Append("<link rel=\"shortcut icon\" href=\"");
        resources.Append(VirtualPathUtility.ToAbsolute("~/Images/icono.ico"));
        resources.Append("\" />");

        ScriptsLiteral.Text = resources.ToString();

        //HeaderFlashLiteral.Text = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"480\" height=\"120\">"
        //        + "<param name=\"movie\" value=\"" + VirtualPathUtility.ToAbsolute("~/Images/cuba-logo.swf") + " />"
        //        + "<param name=\"quality\" value=\"high\" />"
        //        + "<embed src=\"" + VirtualPathUtility.ToAbsolute("~/Images/cuba-logo.swf") + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"480\" height=\"120\"></embed>"
        //    + "</object>";    

        //LeftFlashLiteral.Text = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"220\" height=\"325\">"
        //        + "<param name=\"movie\" value=\"swf/cuba-site.swf\" />"
        //        + "<param name=\"quality\" value=\"high\" />"
        //        + "<embed src=\"" + VirtualPathUtility.ToAbsolute("~/Images/cuba-site.swf") + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"220\" height=\"325\"></embed>"
        //    + "</object>";
    }
}
